package com.huizhonglm.diap.core.utils;

import android.content.Context;
import android.widget.Toast;

import com.huizhonglm.diap.DiapApplication;


/**
 * 自定义toast
 *
 * @author LiXiaolong
 * @since 2013-5-15 下午2:36:31
 */
public class ToastUtil {

    /**
     * toast提示框【停留时间3秒】
     *
     * @param msg 提示信息
     */
    public static void makeTextLong(String msg) {
        Context context = DiapApplication.getInstance().getContext();
        Toast.makeText(context, msg, Toast.LENGTH_LONG).show();
    }

    /**
     * toast提示框【停留时间2秒】
     *
     * @param msg 提示信息
     */
    public static void makeTextShort(String msg) {
        Context context = DiapApplication.getInstance().getContext();
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }

}
